package com.ruoyi.project.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.base.Field;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 操作日志记录对象 project_oper_log
 * 
 * @author zzy
 * @date 2025-10-23
 */
public class ProjectOperLog extends Field
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 请求唯一ID */
    @Excel(name = "请求唯一ID")
    private String requestId;

    /** 模块名称 */
    @Excel(name = "模块名称")
    private String moduleName;

    /** 方法名 */
    @Excel(name = "方法名")
    private String methodName;

    /** 请求URL */
    @Excel(name = "请求URL")
    private String requestUrl;

    /** GET/POST/PUT/DELETE */
    @Excel(name = "GET/POST/PUT/DELETE")
    private String requestMethod;

    /** 客户端IP地址 */
    @Excel(name = "客户端IP地址")
    private String requestIp;

    /** 请求路径，如：/project/goods/page */
    @Excel(name = "请求路径，如：/project/goods/page")
    private String uri;

    /** 请求参数（JSON格式） */
    @Excel(name = "请求参数", readConverterExp = "J=SON格式")
    private String requestParams;

    /** 响应结果（JSON字符串） */
    @Excel(name = "响应结果", readConverterExp = "J=SON字符串")
    private String responseResult;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 最后登录IP */
    @Excel(name = "最后登录IP")
    private String loginIp;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRequestId(String requestId) 
    {
        this.requestId = requestId;
    }

    public String getRequestId() 
    {
        return requestId;
    }
    public void setModuleName(String moduleName) 
    {
        this.moduleName = moduleName;
    }

    public String getModuleName() 
    {
        return moduleName;
    }
    public void setMethodName(String methodName) 
    {
        this.methodName = methodName;
    }

    public String getMethodName() 
    {
        return methodName;
    }
    public void setRequestUrl(String requestUrl) 
    {
        this.requestUrl = requestUrl;
    }

    public String getRequestUrl() 
    {
        return requestUrl;
    }
    public void setRequestMethod(String requestMethod) 
    {
        this.requestMethod = requestMethod;
    }

    public String getRequestMethod() 
    {
        return requestMethod;
    }
    public void setRequestIp(String requestIp) 
    {
        this.requestIp = requestIp;
    }

    public String getRequestIp() 
    {
        return requestIp;
    }
    public void setUri(String uri) 
    {
        this.uri = uri;
    }

    public String getUri() 
    {
        return uri;
    }
    public void setRequestParams(String requestParams) 
    {
        this.requestParams = requestParams;
    }

    public String getRequestParams() 
    {
        return requestParams;
    }
    public void setResponseResult(String responseResult) 
    {
        this.responseResult = responseResult;
    }

    public String getResponseResult() 
    {
        return responseResult;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setLoginIp(String loginIp) 
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp() 
    {
        return loginIp;
    }
    public void setLoginDate(Date loginDate) 
    {
        this.loginDate = loginDate;
    }

    public Date getLoginDate() 
    {
        return loginDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("requestId", getRequestId())
            .append("moduleName", getModuleName())
            .append("methodName", getMethodName())
            .append("requestUrl", getRequestUrl())
            .append("requestMethod", getRequestMethod())
            .append("requestIp", getRequestIp())
            .append("uri", getUri())
            .append("requestParams", getRequestParams())
            .append("responseResult", getResponseResult())
            .append("operator", getOperator())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("loginIp", getLoginIp())
            .append("loginDate", getLoginDate())
            .toString();
    }
}
